<?php

namespace app\modules\admin;

use Yii;
// use yii\web\AssetManager;

/**
 * admin module definition class
 */
class Module extends \yii\base\Module
{
    /**
     * {@inheritdoc}
     */
    public $controllerNamespace = 'app\modules\admin\controllers';
    public $layout = 'main';
    /**
     * {@inheritdoc}
     */
    public function init()
    {
        parent::init();
        Yii::$app->language = 'zh-CN';
        // custom initialization code goes here
        Yii::$app->components = [
            'assetManager' => [
                'class' => 'yii\web\AssetManager',
                'appendTimestamp' => true,
                'bundles' => [
                    'yii\web\JqueryAsset' => [
                        'sourcePath' => null,
                        'js' => []
                    ],
                ],
            ],
            /*'view' => [
                'class' => 'yii\web\View',
                'theme' => [
                    'pathMap' => ['@admin/views' => '@app/themes/admin/views'],
                    'baseUrl' => '@web/adminL',
                ],
            ],*/
        ];
    }
}
